import {createRouter,createWebHashHistory} from 'vue-router'
const routes=[
    {
        path:'/home',
        name:'home',
        component:()=>import('../views/Home'),
        redirect: '/home/history',
        children:[
            {
                path:'history',
                component:()=>import('@/components/History')
            },
            {
                path:'content',
                component:()=>import('@/components/Content')
            }
        ]
    },
    {
        path:'/lock',
        name:'lock',
        component:()=>import('../views/Lock')
    },
    {
        path:'/',
        redirect:'/lock'
    }
];
const router=createRouter({
    routes,
    history:createWebHashHistory()
})
export default router
